import { fromJS } from 'immutable';
import * as constants from './constants';

const defaultState = fromJS({
	dataValue: [1],  
});

const changeHomeData = (state, action) => { 
	return state.merge({
		dataValue: fromJS(action.dataValue), 
	});
}; 
export default (state = defaultState, action) => {
	switch(action.type) {
		case constants.HOME_DATA:
			return changeHomeData(state, action);  
		default:
			return state;
	}
}